<?php if (!defined('THINK_PATH')) exit(); if (!defined('SHUIPF_VERSION')) exit(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="favicon.ico" rel="shortcut icon" />
<link rel="canonical" href="<?php echo ($config_siteurl); ?>" />
<title><?php if( isset($SEO['title']) && !empty($SEO['title']) ): echo ($SEO['title']); endif; echo ($SEO['site_title']); ?></title>
<meta name="description" content="<?php echo ($SEO['description']); ?>" />
<meta name="keywords" content="<?php echo ($SEO['keyword']); ?>" />
<link href="<?php echo ($config_siteurl); ?>statics/default/css/article_list.css" rel="stylesheet" type="text/css" />
<link href="<?php echo ($config_siteurl); ?>statics/default/css/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "<?php echo ($config_siteurl); ?>",
    JS_ROOT: "statics/js/"
};
</script>
<script src="<?php echo ($config_siteurl); ?>statics/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo ($config_siteurl); ?>statics/default/js/w3cer.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo ($config_siteurl); ?>statics/js/ajaxForm.js"></script>
</head>
<body>
<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<!-- 头部广告开始 -->
<div class="main_full orange">
    <div class="main_box">
        <div class="ad1">
            <img src="<?php echo ($config_siteurl); ?>statics/images/ad/ad1.jpg">
        </div>
    </div>
</div>
<!-- 头部广告结束-->
<!-- 倒计时开始 -->
<div class="main_full light_grey border_bottom">
    <div class="main_box ">
        <div class="count_down"> <div id="countdown"></div><span id="time1"></span>&nbsp;&nbsp;距高考还有<span id="time"></span>天&nbsp;&nbsp;距中考还有<span> <span id="time_z"></span>天 </div>
    </div>
</div>
<!-- 倒计时结束 -->
<div style="clear: both"></div>
<!-- 头部logo行开始 -->
<div class="main_full">
    <div class="main_box">
        <div class="top">
            <div class="logo left"><a href="index.php" target="_self"><img src="<?php echo ($config_siteurl); ?>statics/images/logo.png"></a></div>
            <div class="lianxi left"> <img src="<?php echo ($config_siteurl); ?>statics/images/tel.png"> <ul><li><a href="baoming.php" target="_self">在线报名</a></li><li><a href="guestbook.php" target="_self">在线留言</a></li><li><a href="index.php?a=lists&catid=24" target="_self">了解书林</a></li></ul></div>
            <div class="tx left"><img src="<?php echo ($config_siteurl); ?>statics/images/tx.png"> </div>
            <div class="erweima left"> <img src="<?php echo ($config_siteurl); ?>statics/images/erweima.jpg"> </div>
        </div>
    </div>
</div>
<!-- 头部logo行结束 -->
<div style="clear: both"></div>
<!-- 导航开始 -->
<div class="main_full red">
    <div class="main_box">
       <div class="nav">
           <ul>
               <!--li><a href="<?php echo U('content/index/Index');?>" target="_self">网站首页</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'24'));?>" target="_self">学校简介</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'11'));?>" target="_self">学校动态</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'30'));?>" target="_self">教学管理</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'5'));?>" target="_self">师资力量</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'3'));?>" target="_self">学子风采</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'12'));?>" target="_self">高补专区</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'13'));?>" target="_self">中补专区</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'4'));?>" target="_self">艺考专区</a></li>
               <li><a href="<?php echo U('content/index/lists',array('catid'=>'27'));?>" target="_self">联系方式</a></li>-->
               <li><a href="index.php" target="_self">网站首页</a></li>
               <li><a href="index.php?a=lists&catid=24" target="_self">学校简介</a></li>
               <li><a href="index.php?a=lists&catid=11" target="_self">学校动态</a></li>
               <li><a href="index.php?a=lists&catid=30" target="_self">教学管理</a></li>
               <li><a href="index.php?a=lists&catid=5" target="_self">师资力量</a></li>
               <li><a href="index.php?a=lists&catid=3" target="_self">学子风采</a></li>
               <li><a href="index.php?a=lists&catid=12" target="_self">高补专区</a></li>
               <li><a href="index.php?a=lists&catid=13" target="_self">中补专区</a></li>
               <li><a href="index.php?a=lists&catid=4" target="_self">艺考专区</a></li>
               <li><a href="index.php?a=lists&catid=27" target="_self">联系方式</a></li>
           </ul>
       </div>
    </div>
</div>
<!-- 导航结束 -->
<div style="clear: both"></div>

<link href="<?php echo ($config_siteurl); ?>statics/default/css/images.css" rel="stylesheet" type="text/css" />
<div class="main_box mt_10">
    <div class="ad">
        <img src="<?php echo ($config_siteurl); ?>statics/images/ad/ad2.jpg">
    </div>
</div>
<div style="clear: both"></div>
<div class="main_box mt_10">
    <div class="article_list_right left mb_10">
        <div class="navigation">
            <div class="title"> 快捷导航 </div>
            <ul>
			 	<li><a href="index.php?a=lists&catid=24" target="_self">学校简介</a></li>
				<li><a href="index.php?a=lists&catid=6" target="_self">校园环境</a></li>
                <li><a href="index.php?a=lists&catid=11" target="_self">学校动态</a></li>
				<li><a href="index.php?a=lists&catid=30" target="_self">教学管理</a></li>
				<li><a href="index.php?a=lists&catid=5" target="_self">师资力量</a></li>
				<li><a href="index.php?a=lists&catid=3" target="_self">学子风采</a></li>
                <li><a href="index.php?a=lists&catid=14" target="_self">学习园地</a></li>
                <li><a href="index.php?a=lists&catid=27" target="_self">联系我们</a></li>
            </ul>
            <div style="clear:both"></div>
        </div>
        <!--  div class="navigation">
            <div class="title"> <?php echo getCategory($catid,'catname');?> </div>
            <ul> 
                <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "category")){ $data = $content_tag->category(array('action'=>'category','catid'=>getCategory($catid),'order'=>'listorder ASC','num'=>'0','page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href='<?php echo ($vo["url"]); ?>' <?php if( $catid == $vo['catid'] ): ?>class='thisclass'<?php endif; ?>  title="<?php echo ($vo["catname"]); ?>"><?php echo ($vo["catname"]); ?></a> <span class="right"><?php echo ($vo["catdir"]); ?></span></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <div style="clear:both"></div>
        </div>-->
        <div class="rand_pic mt_10">
            <div class="title"> 招生热线  </div>
            <div class="mt_10 mb_10"><img src="<?php echo ($config_siteurl); ?>statics/images/tels.png"></div>
        </div>
        <div class="mt_10"><img src="<?php echo ($config_siteurl); ?>statics/images/baoming_n.png"></div>
        <div class="mt_10"><img src="<?php echo ($config_siteurl); ?>statics/images/message_n.png"></div>
        <div class="rand_pic mt_10">
            <div class="title">推荐热文</div>
            <ul>
                <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "lists")){ $data = $content_tag->lists(array('action'=>'lists','catid'=>$catid,'order'=>'id DESC','num'=>'4','thumb'=>'1','page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                            <a href="<?php echo ($vo["url"]); ?>" title="<?php echo ($vo["title"]); ?>">
                                <img src='<?php if($vo['thumb']): echo ($vo["thumb"]); else: echo ($config_siteurl); ?>statics/default/images/defaultpic.gif<?php endif; ?>' border='0' width='140' height='100' alt='<?php echo ($vo["title"]); ?>'>
                                <span><?php echo (str_cut($vo["title"],7)); ?></span>
                            </a>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <div style="clear:both"></div>
        </div>
       
    </div>
    <div class="article_list_left right mb_10">
        <div class="map">
            <span class="home_ico">当前位置：<a href="<?php echo ($config_siteurl); ?>">书林学校</a> &gt; <?php  $arrparentid = array_filter(explode(',', getCategory($catid,"arrparentid") . ',' . $catid)); foreach ($arrparentid as $cid) { $parsestr[] = '<a href="' . getCategory($cid,'url') . '" >' . getCategory($cid,'catname') . '</a>'; } echo implode(" &gt; ", $parsestr);?></span>
        </div>
        <div id="picSlideWrap" class="clearfix">
            <h3 class="titleh3 b_t_light_red"><?php echo ($title); ?></h3>
        <h4 class="titleh4">发布时间：<?php echo ($updatetime); ?>  |  您是第<span id="hits">0</span>位浏览者 </p></h4>
    
        <div class="imgnav" id="imgnav"> 
    
             <div id="img"> 
               <?php if(is_array($imgs)): $i = 0; $__LIST__ = $imgs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><img src="<?php echo ($vo["url"]); ?>" width="780" height="570"/><?php endforeach; endif; else: echo "" ;endif; ?>
                <div id="front" title="上一张"><a href="javaScript:void(0)" class="pngFix"></a></div>
                <div id="next" title="下一张"><a href="javaScript:void(0)" class="pngFix"></a></div>
             </div>
             
             <div id="content">
    　　                          <p>  <?php echo ($description); ?></p>
             </div>
              
             <div id="cbtn">
                <i class="picSildeLeft"><img src="<?php echo ($config_siteurl); ?>

statics/images/picSlideLeft.gif"/></i> 
                <i class="picSildeRight"><img src="<?php echo ($config_siteurl); ?>

statics/images/picSlideRight.gif"/></i> 
                <div id="cSlideUl">
                    <ul>
                    <?php if(is_array($imgs)): $i = 0; $__LIST__ = $imgs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><img src="<?php echo ($vo["url"]); ?>"/><tt></tt></li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
  </div>
             </div>         
            
        </div>
    
    </div> 

<script>
$(document).ready(function(){                          
    var index=0;
    var length=$("#img img").length;
    var i=1;
    
    //关键函数：通过控制i ，来显示图片
    function showImg(i){
        $("#img img")
            .eq(i).stop(true,true).fadeIn(800)
            .siblings("img").hide();
         $("#cbtn li")
            .eq(i).addClass("hov")
            .siblings().removeClass("hov");
    }
    
    function slideNext(){
        if(index >= 0 && index < length-1) {
             ++index;
             showImg(index);
        }else{
			if(confirm("已经是最后一张,点击确定重新浏览！")){
				showImg(0);
				index=0;
				aniPx=(length-5)*142+'px'; //所有图片数 - 可见图片数 * 每张的距离 = 最后一

张滚动到第一张的距离
				$("#cSlideUl ul").animate({ "left": "+="+aniPx },200);
				i=1;
			}
            return false;
        }
        if(i<0 || i>length-5) {return false;}						  
               $("#cSlideUl ul").animate({ "left": "-=142px" },200)
               i++;
    }
     
    function slideFront(){
       if(index >= 1 ) {
             --index;
             showImg(index);
        }
        if(i<2 || i>length+5) {return false;}
               $("#cSlideUl ul").animate({ "left": "+=142px" },200)
               i--;
    }	
        $("#img img").eq(0).show();
        $("#cbtn li").eq(0).addClass("hov");
        $("#cbtn tt").each(function(e){
            var str=(e+1)+"/"+length;
            $(this).html(str)
        })
    
        $(".picSildeRight,#next").click(function(){
               slideNext();
           })
        $(".picSildeLeft,#front").click(function(){
               slideFront();
           })
        $("#cbtn li").click(function(){
            index  =  $("#cbtn li").index(this);
            showImg(index);
        });	
		$("#next,#front").hover(function(){
			$(this).children("a").fadeIn();
		},function(){
			$(this).children("a").fadeOut();
		})
    })	
</script>
   
        <div class="fanye" style="border: 0px solid #CCC;">
      <ul>
        <?php echo ($pages); ?>
      </ul>
      <div style="clear:both"></div>
    </div>
      
      <div class="page">
        <p>上一篇：<?php  $_pre_r = \Content\Model\ContentModel::getInstance(getCategory($catid,"modelid"))->where(array("catid"=>$catid,"status"=>99,"id"=>array("LT",$id)))->order(array("id" => "DESC"))->field("id,title,url")->find(); echo $_pre_r?"<a class=\"pre_a\" href=\"".$_pre_r["url"]."\" >".$_pre_r["title"]."</a>":"已经没有了"; ?> </p>
        <p>下一篇：<?php  $_pre_n = \Content\Model\ContentModel::getInstance(getCategory($catid,"modelid"))->where(array("catid"=>$catid,"status"=>99,"id"=>array("GT",$id)))->order(array("id" => "ASC"))->field("id,title,url")->find(); echo $_pre_n?"<a class=\"pre_a\" href=\"".$_pre_n["url"]."\" >".$_pre_n["title"]."</a>":"已经没有了"; ?> </p>
      </div>
    

    
  
    </div>
    </div>

  
<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<div style="clear: both"></div>
<div class="main_full red footer mt_10">
    <div class="main_box">
        <div class="footer_log left"><img src="<?php echo ($config_siteurl); ?>statics/images/log_white.png"> </div>
        <div class="nav_all left">
            <div class="nav">
                <a href="index.php"> 网站首页 </a> |
                <a href="index.php?a=lists&catid=24" target="_self"> 学校简介 </a> |
                <a href="index.php?a=lists&catid=11" target="_self">学校动态</a> |
                <a href="index.php?a=lists&catid=30" target="_self">教学管理</a> |
                <a href="index.php?a=lists&catid=5" target="_self">师资力量</a> |
                <a href="index.php?a=lists&catid=3" target="_self">学子风采</a> |
                <a href="guestbook.php" target="_self"> 给我留言  </a> |
                <a href="baoming.php" target="_self"> 在线报名 </a> |
                <a href="index.php?a=lists&catid=27" target="_self">联系方式</a>
            </div>
            <div class="nav_bottom">
                <div class="nav_bottom_left left">
                    <div class="nav_lianxi"><img src="<?php echo ($config_siteurl); ?>statics/images/nav_lianxi.png"> </div>
                    <!--  p>西安书林补习培训中心</p-->
                    <p>友情链接：
                         <?php  $cache = 0; $cacheID = to_guid_string(array('sql'=>'select * from lvyecms_links where visible=1  order by id desc','num'=>'10','page'=>'0','return'=>'data','pagefun'=>'page','cache'=>'0','dbsource'=>'',)); if(0 && $_return = S( $cacheID ) ){ $data=$_return; }else{ $_sql = "select * from lvyecms_links where visible=1  order by id desc"; $get_db = M(); $data=$get_db->query($_sql." LIMIT 10 "); if(0){ S( $cacheID ,$data,$cache); }; } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo["url"]); ?>" title="<?php echo ($vo["title"]); ?>" target="_blank" class="link"><?php echo ($vo["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                    </p>
                    <p>电话:029-87563920 1802867130  18092677995  18092867360</p>
                    <p>地址：西安市互助路14号（兴庆公园北门东）</p>
                    <p>版权所有：CopyRight®2010-2017  陕ICP备：17009481号 <script language="javascript" type="text/javascript" src="//js.users.51.la/19199499.js"></script></p>
                    
                </div>
                <div class="weweima right">
                    <img src="<?php echo ($config_siteurl); ?>statics/images/erweima1.jpg">
                </div>
            </div>
        </div>
    </div>
</div>
<SCRIPT LANGUAGE="JavaScript" src=http://float2006.tq.cn/floatcard?adminid=9783758&sort=0 ></SCRIPT>
<script>
        window.onload=function(){           
           getMyTime(); 
           getMyTime_z();   
           getMyTime1();    
        }
        //1.前面补0
        function p(n){
            return n<10?'0'+n:n;
        }
        //2.倒计时
        function getMyTime_z(){           
            var startDate=new Date();
            var endDate=new Date('2017/6/28 00:00:00');
            var countDown=(endDate.getTime()-startDate.getTime())/1000;
            var day=parseInt(countDown/(24*60*60));
            var h=parseInt(countDown/(60*60)%24);
            var m=parseInt(countDown/60%60);
            var s=parseInt(countDown%60);                
            document.getElementById('time_z').innerHTML=day;
            setTimeout('getMyTime()',500);
            if(countDown<=0){
              document.getElementById('time').innerHTML='中考已经结束'; 
            }              
        }
        //2.倒计时
        function getMyTime(){           
            var startDate=new Date();
            var endDate=new Date('2017/6/7 00:00:00');
            var countDown=(endDate.getTime()-startDate.getTime())/1000;
            var day=parseInt(countDown/(24*60*60));
            var h=parseInt(countDown/(60*60)%24);
            var m=parseInt(countDown/60%60);
            var s=parseInt(countDown%60);                
            document.getElementById('time').innerHTML=day;
            setTimeout('getMyTime()',500);
            if(countDown<=0){
              document.getElementById('time').innerHTML='高考已经结束'; 
            }              
        }
        
        //3.当前时间
        function getMyTime1(){
            var myDate=new Date();
            var year=myDate.getFullYear();
            var month=myDate.getMonth()+1;
            var day=myDate.getDate();
            var week=myDate.getDay();
            var array=['星期日','星期一','星期二','星期三','星期四','星期五','星期六',];
            var hour=myDate.getHours();
            var minute=myDate.getMinutes();
            var second=myDate.getSeconds();
            document.getElementById('time1').innerHTML=year+'年'+month+'月'+day+'日'+'&nbsp;'+array[week]+'&nbsp;'+p(hour)+':'+p(minute)+':'+p(second);
            setTimeout('getMyTime1()',500);
        }
    </script>
<script type="text/javascript">
$(function (){
	$(window).toTop({showHeight : 100});
	//点击
	$.get("<?php echo ($config_siteurl); ?>api.php?m=Hits&catid=<?php echo ($catid); ?>&id=<?php echo ($id); ?>", function (data) {
	    $("#hits").html(data.views);
	}, "json");
});
//评论
var commentsQuery = {
    'catid': '<?php echo ($catid); ?>',
    'id': '<?php echo ($id); ?>',
    'size': 10
};
(function () {
    var ds = document.createElement('script');
    ds.type = 'text/javascript';
    ds.async = true;
    ds.src = GV.DIMAUB+'statics/js/comment/embed.js';
    ds.charset = 'UTF-8';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
})();
//评论结束
</script> 
</body>
</html>